package cc.w3d.jawos.apps.artiks.client.widgets;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.resources.client.ImageResource;

public class IconToolBarButton extends ToolBarButton
{
	ImageResource icon;

	public IconToolBarButton(ImageResource icon)
		{super("<img style='position:relative; left:-3' src='" + icon.getURL() + "' />"); this.icon = icon;}

	public IconToolBarButton(ImageResource icon, ClickHandler handler)
		{super("<img style='position:relative; left:-3' src='" + icon.getURL() + "' />", handler); this.icon = icon;}

	public ImageResource getIcon(){return icon;}
}
